//
//  ActivityDetailViewController.h
//  OrderSeat
//
//  Created by 王威 on 13-11-26.
//  Copyright (c) 2013年 wangwei. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MWPhotoBrowser.h"
#import <AssetsLibrary/AssetsLibrary.h>

@class ActivityDetailDataSource;
@interface ActivityDetailViewController : BaseViewController<MWPhotoBrowserDelegate,UIAlertViewDelegate>

@property (strong, nonatomic) IBOutlet UIScrollView *theScrollview;
@property (strong, nonatomic) IBOutlet UIImageView *logoImage;
@property (strong, nonatomic) IBOutlet UILabel *titleLabel;
@property (strong, nonatomic) IBOutlet UIButton *likeBtn;
@property (strong, nonatomic) IBOutlet UIButton *shareBtn;
@property (strong, nonatomic) IBOutlet UIButton *joinBtn;

@property (strong, nonatomic) IBOutlet UILabel *activityTimeLabel;
@property (strong, nonatomic) IBOutlet UILabel *joinCountLabel;
@property (strong, nonatomic) IBOutlet UILabel *joinCountEndLabel;
@property (strong, nonatomic) IBOutlet UILabel *explainLabel;
@property (strong, nonatomic) IBOutlet UITableView *commentsTable;
@property (strong, nonatomic) IBOutlet UILabel * commentCountLabel;
@property (strong, nonatomic) IBOutlet UIButton *compostBtn;

@property (assign, nonatomic) BOOL isUse;
@property (strong, nonatomic) NSString *activityId;
@property (strong, nonatomic) NSMutableArray *photoList;
@property (strong, nonatomic) ActivityDetailDataSource *dataSource;

- (id)initWithActivityId:(NSString*)activityId;
- (void)setFormValues:(NSDictionary*)dic;

@end

@class SimpleCommentsCell;
@interface ActivityDetailDataSource : BaseDataSource<UITableViewDataSource,UITableViewDelegate>

@property (strong, nonatomic) NSMutableArray *commentsList;
@property (strong, nonatomic) SimpleCommentsCell *commentCell;
@property (strong, nonatomic) ActivityDetailViewController *viewController;

- (void)fetchActivityInfo;
- (void)joinActivity;
- (void)like;
- (void)share;

@end
